package edu.xjnu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author David
 * @since 2023-03-18
 */
@Getter
@Setter
@TableName("song")
@ApiModel(value = "SongEntity对象", description = "")
public class SongEntity extends Model<SongEntity> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("music_id")
    private Integer musicId;

    @TableField("name")
    private String name;

    @TableField("serial_numbertiny")
    private Integer serialNumbertiny;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
